package com.zl.dao
{
	import com.zl.bean.CollectionBean;
	import com.zl.net.MyRoFactory;

	public class CollectionDao
	{
		public function CollectionDao()
		{
		}
		
		public function getInEquCodes(equCodesStr:String, sDateStr:String, eDateStr:String, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('collectionRo', resultHandler, '加载检测项', 'getInEquCodes', equCodesStr, sDateStr, eDateStr);
		}
		
		public function getInEquId(equId:int, sDateStr:String, eDateStr:String, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('collectionRo', resultHandler, '加载检测项', 'getInEquId', equId, sDateStr, eDateStr);
		}
		
		public function getInEquIds(equCodesStr:String, sDateStr:String, eDateStr:String, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('collectionRo', resultHandler, '加载检测项', 'getInEquIds', equCodesStr, sDateStr, eDateStr);
		}
		
		public function getInCpk(procId:int, sDateStr:String, eDateStr:String, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('collectionRo', resultHandler, '加载检测项', 'getInCpk', procId, sDateStr, eDateStr);
		}
		
		public function insert(bean:CollectionBean, resultHandler:Function):void{
			MyRoFactory.getInstance().callFunction('collectionRo', resultHandler, '添加检测项', 'insert', bean);
		}
	}
}